import md5 from 'blueimp-md5';
import apiClient from './';
export const endpoints = {
    USER_REGISTER: '/user/register',
    USER_LOGIN: '/user/login',
}
//用户注册
export const userRegister = (data)=>{
  return apiClient.post(endpoints.USER_REGISTER,data);
}
//用户登录
export const userLogin = (data)=>{
    return apiClient.post(endpoints.USER_LOGIN,{
        ...data,
        passwordMd5:md5(data.password)
    });
  }